Skip to content

Conversation

@nordicjm
Copy link
Contributor

fixup! [nrf noup] zephyr: Add support for ARM thumb filter

Fixes some issues with the ARM filter implementation which has been updated to support jump instructions that are staggered into 2 different data chunks, and whereby the final portion of data was not ran through the filter

Comment on lines +1085 to +1086
if ((filter_writeback_pos % sizeof(uint32_t)) != 0)
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, so the assumption is that filter_writeback_pos is aligned to at least two bytes? because modulo here can give 1 and 3 as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ARM thumb filter takes in data that is 4-byte aligned and outputs data that is 2-byte aligned so 1 and 3 are not possible

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^^ I was thought so.,

Copy link
Contributor

@de-nordic de-nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK.

fixup! [nrf noup] zephyr: Add support for ARM thumb filter

Fixes some issues with the ARM filter implementation which has
been updated to support jump instructions that are staggered into
2 different data chunks, and whereby the final portion of data was
not ran through the filter

Signed-off-by: Jamie McCrae <[email protected]>
@nordicjm nordicjm merged commit 7d584fc into nrfconnect:main Oct 24, 2024
@nordicjm nordicjm deleted the fixlzmaarmthumbpr branch November 6, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants